package com.tgpms.web.tongfei.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author jl
 * @since 2020-11-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("IN_LOG")
@ApiModel(value="InLog对象", description="")
public class InLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "ID" , type = IdType.INPUT)
    private String id;

    @TableField(value = "NOTES")
    private String notes;

    @TableField(value = "QUANTITIES")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date quantities;

    @TableField(value = "FILES")
    private String files;

    @TableField(value = "STATUS")
    @TableLogic(value="0",delval="1")//mybatisplus逻辑删除标记（0：有效；1：删除）
    private String status;

    @TableField(value = "INSERT_USER")
    private String insertUser;

    @TableField(value = "INSERT_DATE")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date insertDate;

    @TableField(value = "MODIFY_USER")
    private String modifyUser;

    @TableField(value = "MODIFY_DATE")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date modifyDate;

    @TableField(value = "DATA_OWNER")
    private String dataOwner;

    @TableField(value = "TO_USERS")
    private String toUsers;

    @TableField(value = "TO_GROUPS")
    private String toGroups;

    @TableField(value = "ROWSTAMP")
    private String rowstamp;

}